import Vue from 'vue'
import Router from 'vue-router'


//导入功能模块

import Navigate from './app/navigate.vue'

import Demo1 from './app/demo1.vue'
import Demo2 from './app/demo2.vue'
import Demo3 from './app/demo3.vue'


import  SubPage from './app/subPage.vue'

import FrameworkDemo from './app/frameworkDemo.vue'
import LifeCicle from './app/frameworkDemo/lifeCicle.vue'
import CardDemo from './app/frameworkDemo/cardDemo.vue'
import CollectionLayoutDemo from './app/frameworkDemo/collectionLayoutDemo.vue'
import EChartDemo from './app/frameworkDemo/eChartDemo.vue'
import GridLayoutDemo from './app/frameworkDemo/gridLayoutDemo.vue'
import LoadingDemo from './app/frameworkDemo/loadingDemo.vue'
import NavLayoutDemo from './app/frameworkDemo/navLayoutDemo.vue'
import PageLayoutDemo from './app/frameworkDemo/pageLayoutDemo.vue'
import ScrollExDemo from './app/frameworkDemo/scrollExDemo.vue'
import StackLayoutDemo from './app/frameworkDemo/stackLayoutDemo.vue'


Vue.use(Router)

//定义路由
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Navigate',
      component: Navigate
    },
    {
      path: '/Sub/Demo1',
      name: 'Demo1',
      component: Demo1
    },
    {
      path: '/Sub/Demo2',
      name: 'Demo2',
      component: Demo2
    },
    {
      path: '/Sub/Demo3',
      name: 'Demo3',
      component: Demo3
    },
    {
      path: '/Sub/FrameworkDemo',
      name: 'FrameworkDemo',
      component: FrameworkDemo
    },
    {
      path: '/Sub/FrameworkDemo/LifeCicle',
      name: 'LifeCicle',
      component: LifeCicle
    },
    {
      path: '/Sub/FrameworkDemo/CardDemo',
      name: 'CardDemo',
      component: CardDemo
    },
    {
      path: '/Sub/FrameworkDemo/CollectionLayoutDemo',
      name: 'CollectionLayoutDemo',
      component: CollectionLayoutDemo
    },
    {
      path: '/Sub/FrameworkDemo/EChartDemo',
      name: 'EChartDemo',
      component: EChartDemo
    },
    {
      path: '/Sub/FrameworkDemo/GridLayoutDemo',
      name: 'GridLayoutDemo',
      component: GridLayoutDemo
    },
    {
      path: '/Sub/FrameworkDemo/LoadingDemo',
      name: 'LoadingDemo',
      component: LoadingDemo
    },
    {
      path: '/Sub/FrameworkDemo/NavLayoutDemo',
      name: 'NavLayoutDemo',
      component: NavLayoutDemo
    },
    {
      path: '/Sub/FrameworkDemo/PageLayoutDemo',
      name: 'PageLayoutDemo',
      component: PageLayoutDemo
    },
    {
      path: '/Sub/FrameworkDemo/ScrollExDemo',
      name: 'ScrollExDemo',
      component: ScrollExDemo
    },
    {
      path: '/Sub/FrameworkDemo/StackLayoutDemo',
      name: 'StackLayoutDemo',
      component: StackLayoutDemo
    },
    {
      path:'/Sub/All/SubPage',
      name:'SubPage',
      component:SubPage
    }
  ]
})
